package com.ruoyi.ordersys.mapper;

import java.util.List;
import com.ruoyi.ordersys.domain.OrderDetails;

/**
 * 订单详情Mapper接口
 * 
 * @author ruoyi
 * @date 2024-07-30
 */
public interface OrderDetailsMapper 
{
    /**
     * 查询订单详情
     * 
     * @param orderDetailId 订单详情主键
     * @return 订单详情
     */
    public OrderDetails selectOrderDetailsByOrderDetailId(Long orderDetailId);

    /**
     * 查询订单详情列表
     * 
     * @param orderDetails 订单详情
     * @return 订单详情集合
     */
    public List<OrderDetails> selectOrderDetailsList(OrderDetails orderDetails);

    /**
     * 新增订单详情
     * 
     * @param orderDetails 订单详情
     * @return 结果
     */
    public int insertOrderDetails(OrderDetails orderDetails);

    /**
     * 修改订单详情
     * 
     * @param orderDetails 订单详情
     * @return 结果
     */
    public int updateOrderDetails(OrderDetails orderDetails);

    /**
     * 删除订单详情
     * 
     * @param orderDetailId 订单详情主键
     * @return 结果
     */
    public int deleteOrderDetailsByOrderDetailId(Long orderDetailId);

    /**
     * 批量删除订单详情
     * 
     * @param orderDetailIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrderDetailsByOrderDetailIds(Long[] orderDetailIds);
}
